import aima.search.framework.HeuristicFunction;

public class IAPrac1HeuristicFunctionB implements HeuristicFunction
{
	public int getHeuristicValue(Object aState)
	{
		// Heuristica criterio B
		IAPrac1State state = (IAPrac1State) aState;
		
		return state.getTotalHmsrec() + (IAPrac1State.MAX_HMSREC*2/3)*state.ncond + (IAPrac1State.MAX_HMSREC*2/3)*state.npas;
	}
}
